{% extends "base.html" %}

{% block content %}
<br />
<h2>{{ user }}</h2>
<hr />
<div class="row" align="center">
  <div class="col-md-4"></div>
  <div class="col-md-4">
    <br />
    <table class="table">
      {% if score >= 0 %}
      <tr>
        <td>本次成绩</td>
        <td>{{ score }}</td>
      </tr>
      {% endif %}
      <tr>
        <td>我的最好成绩</td>
        <td>{{ user.player.hi_score }}</td>
      </tr>
      <tr>
        <td>总次数</td>
        <td>{{ user.player.times }}</td>
      </tr>
    </table>
    <br />
    <p>
      <a class="btn btn-outline-primary btn-block" href="/guess/game/">开始</a>
    </p>
    <p>
      <a class="btn btn-outline-primary btn-block" href="/guess/user/rank/">排行榜</a>
    </p>
  </div>
  <div class="col-md-4"></div>
</div>
{% endblock %}
